@import './01.scss';

#aside {
    position: fixed;
    right: 20px;
    top: 300px;
    width: 40px;
    height: fit-content;
    background-color: white;
    z-index: 99999;
    border: 1px solid rgb(151, 151, 151);

    .cart:hover {
        background-color: red;
    }

    .mask {
        position: absolute;
        width: 40px;
        height: 40px;
        background-color: red;
        z-index: 999999;
        left: 0;
        top: 0;
        display: none;
        font-size: 12px;
        color: white;
        text-align: center;
        line-height: 18px;
    }

    div:nth-child(1) {
        position: relative;
        height: 40px;
        background-color: rgb(233, 233, 233);
        width: 100%;
        font-size: 25px;
        text-align: center;
        line-height: 40px;
        color: rgb(134, 134, 134);
        border-bottom: 1px solid white;
    }

    div:nth-child(2) {
        position: relative;
        height: 40px;
        background-color: rgb(238, 238, 238);
        width: 100%;
        font-size: 25px;
        text-align: center;
        line-height: 40px;
        color: aliceblue;

    }

    div:nth-child(4) {
        position: relative;
        height: 40px;
        background-color: rgb(238, 238, 238);
        width: 100%;
        font-size: 20px;
        text-align: center;
        line-height: 40px;
        color: aliceblue;
        border-bottom: 1px solid white;

    }

    div:nth-child(5) {
        position: relative;
        height: 40px;
        background-color: rgb(238, 238, 238);
        width: 100%;
        font-size: 25px;
        text-align: center;
        line-height: 40px;
        color: rgb(134, 134, 134);

    }

    div:nth-child(3) {
        height: fit-content;
        background-color: rgb(255, 255, 255);
        width: 100%;
        font-size: 20px;
        display: flex;
        align-items: center;
        flex-direction: column;

        p {
            width: 10px;
            font-size: 16px;
            text-align: center;
            color: #333333;
            position: relative;
            left: -3px;

            span {
                display: block;
                width: 20px;
                height: 20px;
                border-radius: 50%;
                background-color: rgb(209, 41, 41);
                text-align: center;
                line-height: 20px;
                color: white;
            }
        }


        color: aliceblue;

    }
}

#main {
    width: 1280px;
    margin: 0 auto 20px;
    min-height: 300px;
    background-color: rgb(212, 212, 212);
    border-radius: 10px;

    .del {
        margin-right: 20px;
    }

    h3 {
        width: 300px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

}

#p {
    width: 1280px;
    margin: 0 auto 20px;
    height: 60px;
    margin-top: 30px;
    background-color: white;
    color: #333;
    font-size: 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;

    input {
        margin-left: 30px;
    }

    span:nth-of-type(1) {
        display: block;
        width: 480px;
        margin-left: 80px;
        text-align: right;
        padding-right: 60px;
        margin-left: 50px;
    }

    span:nth-of-type(2) {
        display: block;
        width: 180px;
        text-align: center;
        margin-left: 220px;
    }

    span:nth-of-type(3) {
        display: block;
        width: 80px;
        text-align: center;

    }

    span:nth-of-type(4) {
        display: block;
        text-align: center;
        margin-left: 70px;
        margin-right: 15px;
    }

}

#main>div {
    margin-bottom: 20px;
    padding: 20px;
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;

    img {
        width: 250px;
    }

    .button {
        display: flex;
        width: fit-content;
        height: fit-content;
        border: 1px solid;

        button {
            width: 45px;
            height: 20px;
            border: none;
            outline: none;
        }

        button:nth-child(2) {
            border-left: 1px solid;
            border-right: 1px solid;
            background-color: white;
        }
    }
}

.p {
    font-size: 22px;
    width: 1280px;
    margin: 0 auto;
    height: 60px;
    padding-left: 30px;

    span {
        padding-left: 30px;
    }
}

.pay {
    width: 1280px;
    margin: 0 auto;
    height: 80px;
    background-color: white;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;

    button {
        width: 130px;
        background-color: rgb(226, 59, 59);
        color: white;
        border: none;
        font-size: 20px;
        height: 100%;
    }

    p {
        margin-right: 30px;
        font-size: 18px;

        span {
            color: red;
        }
    }
}